package indi.service;

import java.util.ArrayList;

import indi.entity.Book;
import indi.entity.Title;

// 注意：可以不需要
public class MagazineService TitleService{

	// 当前系统中的杂志
	private ArrayList<Magazine> currentMagazines;

	public MagazineService() {
		super();
		this.currentMagazines = new ArrayList<>();
	}

	// 过滤书籍中的书本类到当前类
	public boolean filterMagazineFromTitle(
			ArrayList<Title> titles){
		// 遍历，判断是否为Book实例
		for(Title t: this.currentTitles) {
			if(true == t instanceof Magazine) {
				currentBooks.add(((Book)t));
			}
		}
		return true;
	}
	
	
	/*
	// 通过ISBN查询杂志
	public Magazine queryMagazineByIsbn(String isbn) {
		
	}
	*/
	
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
